<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.controller');
/**
 * Hello World Component Controller
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */
class OrdersController extends JController
{
	function __construct(){
	    parent::__construct();
	    // Register Extra tasks
	    $this->registerTask('add','edit');
	}

    /**
     * Method to display the view
     *
     * @access    public
     */
    function display()
    {    	    	
        parent::display();
    }
    function edit(){
        JRequest::setVar( 'view', 'orderform' );	    
	    JRequest::setVar('hidemainmenu', 1);
	    parent::display();
    }
    function lists(){
    	
    }
    function import(){
    	$ordersob = $this->getModel('orders');
    	echo "<pre>";
    	print_r($ordersob);
    }
}
?>
